import {isEmpty} from '../utils'
import {addOutput} from '../outputs'

export function appendSummaryInfo(title: string, message: string): void {
    if (isEmpty(title) || isEmpty(message)) {
        return
    }

    const messageObj = {
        message: message,
        title: title
    }
    addOutput(`SUMMARY_INFO=${JSON.stringify(messageObj)}`)
}
